const QRcode = require("qrcode");

QRcode.toString("https://www.baidu.com", { type: "terminal" }, (err, data) => {
    console.log(data);
    
})